package com.util;

import java.util.UUID;

public class UUIDUtil {

	public synchronized static String getRandomUUID() {
		return UUID.randomUUID().toString();
	}
	
	public synchronized static String getUUID() {
		UUID uuid = UUID.randomUUID();
		String id = "";
		String[] ids = uuid.toString().split("-");
		for(int i = 0; i < ids.length; i++){
			id += ids[i];
		}
		return id;
	}
	
}